package com.mavenq.fly.business.entity;

import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;


@Data
public class Goods extends Base{
    private String goodsName;
    private String goodsCode;
    private Price price;
    private List<Tag> tags;
    private Tag tag;
    private GoodsDetail goodsDetail;

    @Data
    public static class Price{
        private Integer price;
    }

    @Data
    @Setter
    @Getter
    public static class Tag{
        private String name;
    }

    @Data
    public static class GoodsDetail {
        private String goodsName;
        private String goodsCode;
        private String desc;
        private List<Tag> tags;
    }
}
